import json

with open('2.json','r') as fr:
    all = json.loads(fr.read())['all']

all2 = []
for item in all:
    if item['addr'] != '404':
        all2.append(item)

with open('hubei22.json','w') as fw:
    fw.write(json.dumps({'all':all2}, ensure_ascii=False, separators=(',',':')))